package com.keradi.onlab;

public class Material {
	
	private int mMaterialID;
	private boolean mPublic;
	private Task mTask;
	
	public Material(int materialID, boolean Public, Task task)
	{
		mMaterialID = materialID;
		mPublic = Public;
		mTask = task;
		
	}
	
	public int getMaterialID() 
	{
		return mMaterialID;
	}
	
	public boolean isPublic()
	{
		return mPublic;
	}
	
	public Task getTask()
	{
		return mTask;
	}
	
	public String toString()
	{
		String n = this.mMaterialID + " ";
		if (this.mPublic)
		{
			n = n + "Public";
		}
		else {
			n = n + "Private";
		}
		
		return n + "\n";
	}

}
